--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Replication materials for "Trust in the Judiciary and Partisan Reactions to Judicial Checks: Evidence from Argentina"

Martín Gandur (mgandur@fsu.edu)

This version: June 2025, version 1.0
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

1. Supporting Information (SI)

The document "supporting-information.pdf" contains supplementary analyses and material for the article.


--------------------------------------------------------------------------------------------


2. Data files

The data files are located in the folder "data".

The file 'rizzo.RData' is the dataset to reproduce all the results in the main text (except for Figure 1) and most of the results in the Supporting Information (SI) (except for SI B1, SI I1.2, SI I2.1, and SI J).

There are three other datasets in these materials.
	- The folders "data/latinobarometro-all" and "data/lapop-all" contains the datasets "to reproduce the 'latinobarometro-all.rds' and 'lapop-all.rds', respectively, to reproduce the results reported in SI J.
	- The folder "data/sinca" contains the 'sinca.csv' dataset to reproduce the quantities reported in SI I1.2.

The results reported in SI B1 and SI I2.1 employ the Varieties of Democracy (V-Dem) dataset and can be replicated using the package 'vdemdata' in R (see code in 'analysis.R').


--------------------------------------------------------------------------------------------

3. Codebook

Latinobarometer's codebook and questionnaire for the 'rizzo.RData' file are located in the folder "codebook-questionnaire".

SI A has information about the Latinobarometer variables employed in the main analyses.

The codebook for the V-Dem dataset is publicly available at https://www.v-dem.net/documents/55/codebook.pdf.

--------------------------------------------------------------------------------------------

4. Replication code

The file 'analyses.R' contains R code that replicates all of the tables and figures in the main text and appendix.

To replicate all the tables and figures (main text and appendix), open the file 'analyses.R'. Install the packages listed on lines 8-25 and set the working directory on lines 31-32. Lines 36-54 create folders in the working directory that are needed to replicate the results ("tab", "fig", "models", and "genetic-matching-output"). 

The code in 'analyses.R' will save all the tables and figures to the folder 'tab' and 'fig', respectively.

After running all the code in the file 'analyses.R', compile the .tex file 'replicated-tables-figures.tex' to create a pdf of these tables and figures.


--------------------------------------------------------------------------------------------

5. Genetic matching specifications

Several analyses employ multivariate matching with balance weights computed by using the genetic matching algorithm by Diamond and Sekhon (2013) via the GenMatch() function in R. Depending on computer specifications, these analyses can take between 30-90 minutes each. By default, the code in the file 'analyses.R' runs the GenMatch() function to compute the weight matrix for each genetic matching specification.

Alternatively, users can load the genetic matching outputs stored in the folder "genetic-matching-output-stored" and avoid computing the weight matrices. See the code in the file 'analyses.R' -- for example, lines 609-611 and 629.


--------------------------------------------------------------------------------------------

6. Software

All the R code was run using the following R installation:

platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          4.2                              
year           2024                             
month          10                               
day            31                               
svn rev        87279                            
language       R                                
version.string R version 4.4.2 (2024-10-31 ucrt)
nickname       Pile of Leaves